package org.csu.mypetstore.api.service;


import ch.qos.logback.core.subst.Token;
import org.csu.mypetstore.api.common.CommonResponce;
import org.csu.mypetstore.api.entity.Account;
import org.csu.mypetstore.api.entity.Category;
import org.csu.mypetstore.api.entity.Signon;
import org.csu.mypetstore.api.vo.AccountVO;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AccountService {
    CommonResponce<Token> login(String username, String password);
    CommonResponce register(AccountVO accountVO);
    CommonResponce<String> updateAccount(AccountVO account, String username);
    CommonResponce<AccountVO> getAccountInformation(String username);
    CommonResponce<AccountVO>Signon(String username, String password);

    CommonResponce<Object> success();
}
